PATH Mac OS 8 Developer Documentation
> Networking and Communications
> AppleShare
>
|

User Authentication Modules
|
The 'uamg'
Resource
All UAM files have a
'uamg'
resource whose ID is 0. The
'uamg'
resource is the UAM Info resource and it contains the following information:
type 'uamg'
{
integer VersionNumber;
integer UAMClass;
integer PasswordLength;
byte PassDlogFlag;
byte VolDlogFlag;
byte UAMType;
byte UReserved;
};
-
VersionNumber
-
Denotes the version of the UAM API that this UAM conforms to. For version 2.0 of the AFP client UAM interface,
VersionNumber
must be 2.
-
UAMClass
-
Denotes the class of the UAM. The value of
UAMClass
must be one of the following values:
-
0 indicates that this UAM uses Apple Computer's current UAM support, which consists of no user authentication, cleartext password, random number exchange, and two-way random number exchange. They cannot be replaced.
-
1 indicates that this class supports cleartext passwords longer than 8 characters. If you use this class, you don't need a
'uamc'
resource because support for this class is built into the client--you only need to implement a server-side UAM. 2 indicates that this class supports encrypted passwords longer than 8 characters. If you use this class, you don't need a
'uamc'
resource because support for this class is built into the client--you only need to implement a server-side UAM.
-
3 indicates that this UAM uses a UAM-defined authentication method. Use this class if you want to provide your own user interface and write code that handles the login sequence. Code that implements class 3 UAMs is stored as packed '
uamc
'
ID 0 resource.
-
PasswordLength
-
Specifies the maximum password length that the UAM supports. The value of
PasswordLength
can be from 0 to 64.
-
PassDlogFlag
-
Obsolete. Replaced by the
configInfo
flags returned by
UAMOpen Command.
-
VolDlogFlag
-
Obsolete. Replaced by the
configInfo
flags returned by
UAMOpen Command.
-
UAMType
-
A user-defined ID in the range of 128 to 255. It is returned by the
GetVolParams
call as well as other calls. The AFP client does not depend on the value of
UAMType
to identify a particular UAM; instead, the AFP client uses a UAM's protocol name, as described in
The 'uamn' Resource
, to distinguish one UAM from another.
-
UReserved
-
Reserved. The value of
UReserved
is always zero.
© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)